package com.zyp.abstractFactory;

public class TestAbstractFactory {

	public static void main(String[] args) {
		IFacotry factory=new Facotry1();
		ProductA produceA1 = factory.produceA();
		ProductB productB1 = factory.productB();
		produceA1.start();
		productB1.fly();
		
		System.out.println("-------------");
		
		factory=new Facotry2();
		ProductA produceA2 = factory.produceA();
		ProductB productB2 = factory.productB();
		produceA2.start();
		productB2.fly();
		
	}
	
}
